﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CH.Study.ConsoleApp.ExpressionTree
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public sealed class TableMappingAttribute : Attribute
    {
        public TableMappingAttribute() { }
        public string Name { get; set; }
        public string PrimaryKey { get; set; }
    }
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public sealed class ColumnMappingAttribute : Attribute
    {
        public ColumnMappingAttribute() { }
        public bool AutoIncrement { get; set; }
        public object DefaultValue { get; set; }
        public string Name { get; set; }
        public string Type { get; set; }
    }
}
